package com.ftg.learn.chapter8.pattern.factory;

/**
 * 小王同学
 *
 * @author kangjx
 * @version 1.0
 * @date 2023/8/3 上午9:14
 */
public class LittleWang {

    public static void main(String[] args) {
        Cat c1 = CatFactory.instanceCatByName("大宝");
        System.out.println(c1.getName());

        Cat c2 = CatFactory.instanceCat("大宝","波丝猫");
        System.out.println(c1.getName());
    }

}
